
package jnpf.fico.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import jnpf.base.ActionResult;
import jnpf.fico.entity.ZcglCwSzEntity;
import jnpf.fico.entity.ZcglCwSzItemEntity;
import jnpf.fico.model.sz.*;

import java.util.List;

/**
 * 收支详情
 * 版本： V3.2.0
 * 版权： 智果云科技（https://www.jnpfsoft.com）
 * 作者： JNPF开发平台组
 * 日期： 2024-10-25
 */
public interface ZcglCwSzService extends IService<ZcglCwSzEntity> {


    List<ZcglCwSzEntity> getList(ZcglCwSzPagination zcglCwSzPagination);

    List<ZcglCwSzEntity> getTypeList(ZcglCwSzPagination zcglCwSzPagination, String dataType);


    ZcglCwSzEntity getInfo(String id);

    void delete(ZcglCwSzEntity entity);

    void create(ZcglCwSzEntity entity);

    boolean update(String id, ZcglCwSzEntity entity);

    //  子表方法
    List<ZcglCwSzItemEntity> getZcglCwSzItemList(String id, ZcglCwSzPagination zcglCwSzPagination);

    List<ZcglCwSzItemEntity> getZcglCwSzItemList(String id);

    //列表子表数据方法

    //验证表单
    boolean checkForm(ZcglCwSzForm form, int i);

    ActionResult receive(ZcglCwSzForm zcglCwSzForm);

    IPage<ZcglCwSzListVO> getListPage(ZcglCwSzPagination zcglCwSzPagination);

    ActionResult nullify(ZcglCwSzForm zcglCwSzForm);

    ZcglCwSzSumMoneyDTO getSumMoney();

    ZcglCwRefundSumMoneyDTO getSumTkMoney();
}
